<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <style>
        /* 通用的样式 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .form-container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-control {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 5px;
            outline: none;
            background-color: #f5f5f5;
            font-size: 16px;
            color: #333;
        }

        .form-control:focus {
            background-color: #ccc;
        }

        .btn-submit {
            width: 100%;
            background-color: #ff5722;
            border: none;
            border-radius: 5px;
            padding: 10px;
            cursor: pointer;
            font-size: 16px;
            color: white;
        }

        .btn-submit:hover {
            background-color: #e54d27;
        }

        .link-register {
            font-size: 14px;
            color: #999;
            margin-top: 10px;
        }
        .balance{
            font-size: 14px;
            color: #999;
            margin-top: 10px;
        }

        .link-register:hover {
            color: #ff5722;
        }

        .other-login-ways {
            display: flex;
            justify-content: center;
        }

        .icon-wechat {
            width: 65px;
            height: 65px;
            background-image: url('./微信.jpg');
            /* 确保图片路径正确 */
            background-size: cover;
            /* 确保Logo完全覆盖 */
            border-radius: 50%;
            
        }

        .icon-apple {
            width: 65px;
            height: 65px;
            background-image: url('./苹果.png');
            /* 确保图片路径正确 */
            background-size: cover;
            /* 确保Logo完全覆盖 */
            border-radius: 50%;
            margin: 0 10px;
        }
        #username{
            width: 300px;
            height: 30px;
        }
        #password{
            width: 300px;
            height: 30px;
        }
        #captcha{
            height: 30px;
        }
        #btnCaptcha{
            background-color: pink;
            height: 35px;
            border-radius: 15%;
        }

        /* iPhone 12 Pro 特定的样式 */
        @media only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
            .form-container {
                width: 80%;
                /* 根据需要调整宽度 */
            }

            /* 其他针对iPhone 12 Pro的特定样式 */
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="form-container">
            <h1>致信银行登录页面</h1>
            <div class="form-group">
                <label for="username">手机号</label>
                <input type="text" id="username" placeholder="请输入您的账号">
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" placeholder="请输入您的密码">
            </div>
            <div class="form-group">
                <label for="captcha">手机验证码</label>
                <input type="text" id="captcha" placeholder="请输入验证码">
                <button id="btnCaptcha">获取验证码</button>
            </div>
            <div class="form-group">
                <button id="btnLogin" class="btn-submit">登录</button>
            </div>
            <p ><a href="/register/register.html" class="link-register">没有账号？立即注册</a></p>
            <p  >
                <a href="check_balance.html" class="balance">查余额</a> 
            </p>
        </div>
    </div>
    <div class="other-login-ways">
        <a href="https://weixin.qq.com/" target="_blank" class="icon-wechat">
            <!-- 微信的Logo图片将被背景图像覆盖 -->
        </a>
        <a href="https://www.apple.com/" target="_blank" class="icon-apple">
            <!-- 苹果的Logo图片将被背景图像覆盖 -->
        </a>
    </div>

    <script>
        // 获取验证码按钮点击事件
        document.getElementById('btnCaptcha').addEventListener('click', function () {
            // 这里应该是向后端请求验证码的逻辑
            alert('验证码已发送到您的手机或邮箱');
        });

        // 登录按钮点击事件
        document.getElementById('btnLogin').addEventListener